package cn.sms.product.domain;

import cn.sms.basic.domain.Base;
import cn.sms.org.domain.Shop;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Product extends Base {
    private String name;
    private String resources;
    private BigDecimal saleprice;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date onsaletime;
    private Integer state = 0;
    private String costprice;
    private Date createtime;
    private Long salecount = 0L;
    private Long shop_id;
    private Shop shop;

    private cn.sms.product.domain.ProductDetail detail = new cn.sms.product.domain.ProductDetail();
}
